package com.gskj.educenter.service;

import com.gskj.educenter.entity.MemberRegisterVO;
import com.gskj.educenter.entity.UcenterMember;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author Connor-G
 * @since 2020-05-21
 */
public interface IUcenterMemberService extends IService<UcenterMember> {

    /***
     *  会员登陆 返回 token令牌
     * @param member
     * @return
     */
    String login(UcenterMember member);

    /***
     *  会员注册
     * @param member
     */
    void registerMember(MemberRegisterVO member);

    /**
     * 根据 openid 获取 会员信息
     *
     * @param userOpenId
     * @return
     */
    UcenterMember getMemberByOpenId(String userOpenId);

    /**
     * 根据 当前日期 查询 当前日期注册的人数总和
     *
     * @param day
     * @return
     */
    int countRegisterDay(String day);

}
